<?php
namespace Api\Controller;
use Think\Controller;
class BaseController extends  Controller{
	
	public function _initialize(){  
		//跨域
		header("Access-Control-Allow-Origin:*");
        header('Content-Type:application/json; charset=utf-8');
	    header("Access-Control-Allow-Headers:X-Requested-With");
	}
	
	public function test(){
		echo 'hello';exit;
	}
	
	
}
?>